package com.ouc.mapper;

import com.ouc.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Name: DepartmentMapper
 * @Description:
 * @Author: Mr.Tong
 */
@Mapper
@Repository
public interface DepartmentMapper {

    //得到所有的部门信息
    public List<Department> getAllDepartment();
    //根据id获取部门信息
    public Department getDepartmentById(Integer id);
    public Boolean insertDepartment(Department department);

    public Boolean deleteDepartmentById(Integer id);

    public Boolean updateDepartment(Department department);






}
